package androidvn.xenforo.fourums.model;

import android.os.Parcel;
import android.os.Parcelable;

public class User_temp implements Parcelable {
	String userId;
	String userName;
	String gender;
	String messageCount;
	String conversationUnread;
	String registerDate;
	String lastActivity;
	String trophyPoints;
	String alertsUnread;
	String likeCount;
	String warningPoints;

	public User_temp(Parcel in) {
		String[] data = new String[11];
		in.readStringArray(data);

		this.userId = data[0];
		this.userName = data[0];
		this.gender = data[0];
		this.messageCount = data[0];
		this.conversationUnread = data[0];
		this.registerDate = data[0];
		this.lastActivity = data[0];
		this.trophyPoints = data[0];
		this.alertsUnread = data[0];
		this.likeCount = data[0];
		this.warningPoints = data[0];

	}

	public User_temp(String userId, String userName, String gender,
			String messageCount, String conversationUnread,
			String registerDate, String lastActivity, String trophyPoints,
			String alertsUnread, String likeCount, String warningPoints) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.gender = gender;
		this.messageCount = messageCount;
		this.conversationUnread = conversationUnread;
		this.registerDate = registerDate;
		this.lastActivity = lastActivity;
		this.trophyPoints = trophyPoints;
		this.alertsUnread = alertsUnread;
		this.likeCount = likeCount;
		this.warningPoints = warningPoints;
	}

	@Override
	public int describeContents() {

		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeStringArray(new String[] { this.userId, this.userName,
				this.gender, this.messageCount, this.conversationUnread,
				this.registerDate, this.lastActivity, this.trophyPoints,
				this.alertsUnread, this.likeCount, this.warningPoints });

	}

	public static final Parcelable.Creator<User_temp> CREATOR = new Parcelable.Creator<User_temp>() {

		@Override
		public User_temp createFromParcel(Parcel in) {

			return new User_temp(in);
		}

		@Override
		public User_temp[] newArray(int size) {
			// TODO Auto-generated method stub
			return new User_temp[size];
		}
	};

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getMessageCount() {
		return messageCount;
	}

	public void setMessageCount(String messageCount) {
		this.messageCount = messageCount;
	}

	public String getConversationUnread() {
		return conversationUnread;
	}

	public void setConversationUnread(String conversationUnread) {
		this.conversationUnread = conversationUnread;
	}

	public String getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(String registerDate) {
		this.registerDate = registerDate;
	}

	public String getLastActivity() {
		return lastActivity;
	}

	public void setLastActivity(String lastActivity) {
		this.lastActivity = lastActivity;
	}

	public String getTrophyPoints() {
		return trophyPoints;
	}

	public void setTrophyPoints(String trophyPoints) {
		this.trophyPoints = trophyPoints;
	}

	public String getAlertsUnread() {
		return alertsUnread;
	}

	public void setAlertsUnread(String alertsUnread) {
		this.alertsUnread = alertsUnread;
	}

	public String getLikeCount() {
		return likeCount;
	}

	public void setLikeCount(String likeCount) {
		this.likeCount = likeCount;
	}

	public String getWarningPoints() {
		return warningPoints;
	}

	public void setWarningPoints(String warningPoints) {
		this.warningPoints = warningPoints;
	}

}
